package com.miao.admin.service;

import com.alipay.api.domain.RefundInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.miao.common.entity.pojo.Refund;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 退货记录表(Refund)表服务接口
 *
 * @author makejava
 * @since 2021-02-22 17:48:32
 */
@Service
public interface AdminRefundService extends IService<Refund> {
    /**
     * 获取店铺所有退货信息
     *
     * @param sId 店铺id
     * @return List<Refund>
     */
    List<Refund> getAllRefund(int sId);

    /**
     * 获取退货详情
     *
     * @param rId 退货记录号
     * @return Refund
     */
    Refund getRefundInfo(String rId);

    /**
     * 修改拖货状态
     * @param rId
     * @return int
     */
    boolean chgRefundState(String rId,int state);

}